<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>SystemSharp: StatementRemoval.cs Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">SystemSharp
   &#160;<span id="projectnumber">0.3</span>
   </div>
   <div id="projectbrief">A system-level modeling framework for designing real-time embedded systems</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_statement_removal_8cs_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Events</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">StatementRemoval.cs</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_statement_removal_8cs.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="keyword">using</span> System;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">using</span> System.Collections.Generic;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">using</span> System.Linq;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">using</span> System.Text;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">namespace </span>SystemSharp.SysDOM.Transformations</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;{</div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html">   27</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html">StatementRemover</a>: <a class="code" href="interface_system_sharp_1_1_sys_d_o_m_1_1_i_statement_visitor.html">IStatementVisitor</a></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    {</div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a3aa10349c9e870437b7d92a411b84e4d">   29</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_statement.html">Statement</a> Match { <span class="keyword">get</span>; set; }</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">        #region IStatementVisitor Member</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a6742eb9618dd88a5fabfe828fc97d586">   33</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a6742eb9618dd88a5fabfe828fc97d586">AcceptCompoundStatement</a>(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_compound_statement.html">CompoundStatement</a> stmt)</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        {</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;            stmt.Statements.Accept(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;            List&lt;Statement&gt; list = <span class="keyword">new</span> List&lt;Statement&gt;(</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;                stmt.Statements.Where(s =&gt; !s.Equals(Match)));</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;            stmt.Statements.Clear();</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;            stmt.Statements.AddRange(list);</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        }</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#aa1a58e95288616801a5ec70f583fa99b">   42</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#aa1a58e95288616801a5ec70f583fa99b">AcceptLoopBlock</a>(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_loop_block.html">LoopBlock</a> stmt)</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        {</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;            stmt.Body.Accept(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;            <span class="keywordflow">if</span> (stmt.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_loop_block.html#aacd2c38cfe0f95f392be1f46496aa76e">Trailer</a> != null)</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;                stmt.Trailer.Accept(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        }</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#ada35c0edec6742e58d1b06ae097f5a02">   49</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#ada35c0edec6742e58d1b06ae097f5a02">AcceptBreakLoop</a>(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_break_loop_statement.html">BreakLoopStatement</a> stmt)</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        {</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        }</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a02b60280e97137db1bbe59e94e491d02">   53</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a02b60280e97137db1bbe59e94e491d02">AcceptContinueLoop</a>(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_continue_loop_statement.html">ContinueLoopStatement</a> stmt)</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        {</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        }</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a5d59b77fc6586437c021393c89fcf963">   57</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a5d59b77fc6586437c021393c89fcf963">AcceptIf</a>(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_if_statement.html">IfStatement</a> stmt)</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        {</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;            stmt.Branches.Accept(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        }</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#ad63a6f68c0554bea18d488205df37de4">   62</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#ad63a6f68c0554bea18d488205df37de4">AcceptCase</a>(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_case_statement.html">CaseStatement</a> stmt)</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        {</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;            stmt.Branches.Accept(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        }</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a9ea5f397d42930f111814c28d885da11">   67</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a9ea5f397d42930f111814c28d885da11">AcceptStore</a>(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_store_statement.html">StoreStatement</a> stmt)</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        {</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        }</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a61554a16219f29ca3f6cb92ea63d85dc">   71</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a61554a16219f29ca3f6cb92ea63d85dc">AcceptNop</a>(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_nop_statement.html">NopStatement</a> stmt)</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        {</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        }</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a5efd1ab2cc0317d0066525612eacc1a5">   75</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a5efd1ab2cc0317d0066525612eacc1a5">AcceptSolve</a>(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_solve_statement.html">SolveStatement</a> stmt)</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        {</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        }</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a57f9366794eb41bcbb5da8edc3adb983">   79</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a57f9366794eb41bcbb5da8edc3adb983">AcceptBreakCase</a>(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_break_case_statement.html">BreakCaseStatement</a> stmt)</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        {</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        }</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a2c4745453f98b76521ed0e1f97baee72">   83</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a2c4745453f98b76521ed0e1f97baee72">AcceptGotoCase</a>(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_goto_case_statement.html">GotoCaseStatement</a> stmt)</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        {</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        }</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a54de4d38ad10a2cb162329b6b0c3b0a4">   87</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a54de4d38ad10a2cb162329b6b0c3b0a4">AcceptGoto</a>(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_goto_statement.html">GotoStatement</a> stmt)</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;        {</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        }</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a86aee83adb849b11e0c89f57a78c0a26">   91</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a86aee83adb849b11e0c89f57a78c0a26">AcceptReturn</a>(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_return_statement.html">ReturnStatement</a> stmt)</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        {</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        }</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#aa6b5699d3f42f65d9091192dc0b12df2">   95</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#aa6b5699d3f42f65d9091192dc0b12df2">AcceptThrow</a>(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_throw_statement.html">ThrowStatement</a> stmt)</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        {</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        }</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#aeae22910055cc5ba6708fdd8c0d3a8ad">   99</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#aeae22910055cc5ba6708fdd8c0d3a8ad">AcceptCall</a>(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_call_statement.html">CallStatement</a> stmt)</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        {</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        }</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="preprocessor">        #endregion</span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="preprocessor"></span>    }</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_removal.html">  106</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_removal.html">StatementRemoval</a></div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    {</div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_removal.html#ada94eefcb73b229d7b17488410eab885">  108</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_removal.html#ada94eefcb73b229d7b17488410eab885">RemoveAll</a>(<span class="keyword">this</span> <a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_statement.html">Statement</a> stmt, <a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_statement.html">Statement</a> toRemove)</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        {</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;            <a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html">StatementRemover</a> sr = <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html">StatementRemover</a>()</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;            {</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;                Match = toRemove</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;            };</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;            stmt.Accept(sr);</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        }</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    }</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;}</div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_removal_html_ada94eefcb73b229d7b17488410eab885"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_removal.html#ada94eefcb73b229d7b17488410eab885">SystemSharp.SysDOM.Transformations.StatementRemoval.RemoveAll</a></div><div class="ttdeci">static void RemoveAll(this Statement stmt, Statement toRemove)</div><div class="ttdef"><b>Definition:</b> <a href="_statement_removal_8cs_source.html#l00108">StatementRemoval.cs:108</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_goto_statement_html"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_goto_statement.html">SystemSharp.SysDOM.GotoStatement</a></div><div class="ttdoc">Models a &quot;goto&quot; statement. </div><div class="ttdef"><b>Definition:</b> <a href="_algorithms_8cs_source.html#l00657">Algorithms.cs:657</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover_html"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html">SystemSharp.SysDOM.Transformations.StatementRemover</a></div><div class="ttdef"><b>Definition:</b> <a href="_statement_removal_8cs_source.html#l00027">StatementRemoval.cs:27</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_solve_statement_html"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_solve_statement.html">SystemSharp.SysDOM.SolveStatement</a></div><div class="ttdef"><b>Definition:</b> <a href="_algorithms_8cs_source.html#l00972">Algorithms.cs:972</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_store_statement_html"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_store_statement.html">SystemSharp.SysDOM.StoreStatement</a></div><div class="ttdoc">Models a field/variable assignment or a signal transfer. </div><div class="ttdef"><b>Definition:</b> <a href="_algorithms_8cs_source.html#l01018">Algorithms.cs:1018</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover_html_a6742eb9618dd88a5fabfe828fc97d586"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a6742eb9618dd88a5fabfe828fc97d586">SystemSharp.SysDOM.Transformations.StatementRemover.AcceptCompoundStatement</a></div><div class="ttdeci">void AcceptCompoundStatement(CompoundStatement stmt)</div><div class="ttdef"><b>Definition:</b> <a href="_statement_removal_8cs_source.html#l00033">StatementRemoval.cs:33</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover_html_a02b60280e97137db1bbe59e94e491d02"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a02b60280e97137db1bbe59e94e491d02">SystemSharp.SysDOM.Transformations.StatementRemover.AcceptContinueLoop</a></div><div class="ttdeci">void AcceptContinueLoop(ContinueLoopStatement stmt)</div><div class="ttdef"><b>Definition:</b> <a href="_statement_removal_8cs_source.html#l00053">StatementRemoval.cs:53</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_break_case_statement_html"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_break_case_statement.html">SystemSharp.SysDOM.BreakCaseStatement</a></div><div class="ttdoc">Models a &quot;break case&quot; statement. </div><div class="ttdef"><b>Definition:</b> <a href="_algorithms_8cs_source.html#l00582">Algorithms.cs:582</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_statement_html"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_statement.html">SystemSharp.SysDOM.Statement</a></div><div class="ttdoc">Abstract base class for a SysDOM statement. </div><div class="ttdef"><b>Definition:</b> <a href="_algorithms_8cs_source.html#l00059">Algorithms.cs:59</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_if_statement_html"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_if_statement.html">SystemSharp.SysDOM.IfStatement</a></div><div class="ttdoc">Models an &quot;if-then-elsif-...-else&quot; statement. </div><div class="ttdef"><b>Definition:</b> <a href="_algorithms_8cs_source.html#l00804">Algorithms.cs:804</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover_html_aa1a58e95288616801a5ec70f583fa99b"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#aa1a58e95288616801a5ec70f583fa99b">SystemSharp.SysDOM.Transformations.StatementRemover.AcceptLoopBlock</a></div><div class="ttdeci">void AcceptLoopBlock(LoopBlock stmt)</div><div class="ttdef"><b>Definition:</b> <a href="_statement_removal_8cs_source.html#l00042">StatementRemoval.cs:42</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_goto_case_statement_html"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_goto_case_statement.html">SystemSharp.SysDOM.GotoCaseStatement</a></div><div class="ttdoc">Models to &quot;goto case&quot; statement. </div><div class="ttdef"><b>Definition:</b> <a href="_algorithms_8cs_source.html#l00615">Algorithms.cs:615</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_return_statement_html"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_return_statement.html">SystemSharp.SysDOM.ReturnStatement</a></div><div class="ttdoc">Models a &quot;return from procedure/function&quot; statement. </div><div class="ttdef"><b>Definition:</b> <a href="_algorithms_8cs_source.html#l00693">Algorithms.cs:693</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover_html_a61554a16219f29ca3f6cb92ea63d85dc"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a61554a16219f29ca3f6cb92ea63d85dc">SystemSharp.SysDOM.Transformations.StatementRemover.AcceptNop</a></div><div class="ttdeci">void AcceptNop(NopStatement stmt)</div><div class="ttdef"><b>Definition:</b> <a href="_statement_removal_8cs_source.html#l00071">StatementRemoval.cs:71</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_nop_statement_html"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_nop_statement.html">SystemSharp.SysDOM.NopStatement</a></div><div class="ttdoc">Models a &quot;do nothing&quot; statement. </div><div class="ttdef"><b>Definition:</b> <a href="_algorithms_8cs_source.html#l01058">Algorithms.cs:1058</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover_html_aeae22910055cc5ba6708fdd8c0d3a8ad"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#aeae22910055cc5ba6708fdd8c0d3a8ad">SystemSharp.SysDOM.Transformations.StatementRemover.AcceptCall</a></div><div class="ttdeci">void AcceptCall(CallStatement stmt)</div><div class="ttdef"><b>Definition:</b> <a href="_statement_removal_8cs_source.html#l00099">StatementRemoval.cs:99</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_loop_block_html_aacd2c38cfe0f95f392be1f46496aa76e"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_loop_block.html#aacd2c38cfe0f95f392be1f46496aa76e">SystemSharp.SysDOM.LoopBlock.Trailer</a></div><div class="ttdeci">Statement Trailer</div><div class="ttdoc">The trailer is executed after the very last loop iteration. </div><div class="ttdef"><b>Definition:</b> <a href="_algorithms_8cs_source.html#l00347">Algorithms.cs:347</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_case_statement_html"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_case_statement.html">SystemSharp.SysDOM.CaseStatement</a></div><div class="ttdoc">Models a &quot;case select&quot; statement. </div><div class="ttdef"><b>Definition:</b> <a href="_algorithms_8cs_source.html#l00874">Algorithms.cs:874</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover_html_ada35c0edec6742e58d1b06ae097f5a02"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#ada35c0edec6742e58d1b06ae097f5a02">SystemSharp.SysDOM.Transformations.StatementRemover.AcceptBreakLoop</a></div><div class="ttdeci">void AcceptBreakLoop(BreakLoopStatement stmt)</div><div class="ttdef"><b>Definition:</b> <a href="_statement_removal_8cs_source.html#l00049">StatementRemoval.cs:49</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover_html_a5efd1ab2cc0317d0066525612eacc1a5"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a5efd1ab2cc0317d0066525612eacc1a5">SystemSharp.SysDOM.Transformations.StatementRemover.AcceptSolve</a></div><div class="ttdeci">void AcceptSolve(SolveStatement stmt)</div><div class="ttdef"><b>Definition:</b> <a href="_statement_removal_8cs_source.html#l00075">StatementRemoval.cs:75</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover_html_a54de4d38ad10a2cb162329b6b0c3b0a4"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a54de4d38ad10a2cb162329b6b0c3b0a4">SystemSharp.SysDOM.Transformations.StatementRemover.AcceptGoto</a></div><div class="ttdeci">void AcceptGoto(GotoStatement stmt)</div><div class="ttdef"><b>Definition:</b> <a href="_statement_removal_8cs_source.html#l00087">StatementRemoval.cs:87</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_break_loop_statement_html"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_break_loop_statement.html">SystemSharp.SysDOM.BreakLoopStatement</a></div><div class="ttdoc">Models a &quot;break loop&quot; statement. </div><div class="ttdef"><b>Definition:</b> <a href="_algorithms_8cs_source.html#l00490">Algorithms.cs:490</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover_html_a5d59b77fc6586437c021393c89fcf963"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a5d59b77fc6586437c021393c89fcf963">SystemSharp.SysDOM.Transformations.StatementRemover.AcceptIf</a></div><div class="ttdeci">void AcceptIf(IfStatement stmt)</div><div class="ttdef"><b>Definition:</b> <a href="_statement_removal_8cs_source.html#l00057">StatementRemoval.cs:57</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_loop_block_html"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_loop_block.html">SystemSharp.SysDOM.LoopBlock</a></div><div class="ttdoc">Represents a loop. </div><div class="ttdef"><b>Definition:</b> <a href="_algorithms_8cs_source.html#l00315">Algorithms.cs:315</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover_html_ad63a6f68c0554bea18d488205df37de4"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#ad63a6f68c0554bea18d488205df37de4">SystemSharp.SysDOM.Transformations.StatementRemover.AcceptCase</a></div><div class="ttdeci">void AcceptCase(CaseStatement stmt)</div><div class="ttdef"><b>Definition:</b> <a href="_statement_removal_8cs_source.html#l00062">StatementRemoval.cs:62</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover_html_a9ea5f397d42930f111814c28d885da11"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a9ea5f397d42930f111814c28d885da11">SystemSharp.SysDOM.Transformations.StatementRemover.AcceptStore</a></div><div class="ttdeci">void AcceptStore(StoreStatement stmt)</div><div class="ttdef"><b>Definition:</b> <a href="_statement_removal_8cs_source.html#l00067">StatementRemoval.cs:67</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_sys_d_o_m_1_1_i_statement_visitor_html"><div class="ttname"><a href="interface_system_sharp_1_1_sys_d_o_m_1_1_i_statement_visitor.html">SystemSharp.SysDOM.IStatementVisitor</a></div><div class="ttdoc">Visitor pattern interface for statements. </div><div class="ttdef"><b>Definition:</b> <a href="_algorithms_8cs_source.html#l00037">Algorithms.cs:37</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover_html_a57f9366794eb41bcbb5da8edc3adb983"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a57f9366794eb41bcbb5da8edc3adb983">SystemSharp.SysDOM.Transformations.StatementRemover.AcceptBreakCase</a></div><div class="ttdeci">void AcceptBreakCase(BreakCaseStatement stmt)</div><div class="ttdef"><b>Definition:</b> <a href="_statement_removal_8cs_source.html#l00079">StatementRemoval.cs:79</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_continue_loop_statement_html"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_continue_loop_statement.html">SystemSharp.SysDOM.ContinueLoopStatement</a></div><div class="ttdoc">Models a &quot;continue loop&quot; statement. </div><div class="ttdef"><b>Definition:</b> <a href="_algorithms_8cs_source.html#l00536">Algorithms.cs:536</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_throw_statement_html"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_throw_statement.html">SystemSharp.SysDOM.ThrowStatement</a></div><div class="ttdoc">Models a &quot;throw exception&quot; statement. </div><div class="ttdef"><b>Definition:</b> <a href="_algorithms_8cs_source.html#l00725">Algorithms.cs:725</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover_html_a86aee83adb849b11e0c89f57a78c0a26"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a86aee83adb849b11e0c89f57a78c0a26">SystemSharp.SysDOM.Transformations.StatementRemover.AcceptReturn</a></div><div class="ttdeci">void AcceptReturn(ReturnStatement stmt)</div><div class="ttdef"><b>Definition:</b> <a href="_statement_removal_8cs_source.html#l00091">StatementRemoval.cs:91</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_call_statement_html"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_call_statement.html">SystemSharp.SysDOM.CallStatement</a></div><div class="ttdoc">Models a function/procedure call statement. </div><div class="ttdef"><b>Definition:</b> <a href="_algorithms_8cs_source.html#l00758">Algorithms.cs:758</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_removal_html"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_removal.html">SystemSharp.SysDOM.Transformations.StatementRemoval</a></div><div class="ttdef"><b>Definition:</b> <a href="_statement_removal_8cs_source.html#l00106">StatementRemoval.cs:106</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_compound_statement_html"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_compound_statement.html">SystemSharp.SysDOM.CompoundStatement</a></div><div class="ttdoc">A composition of other statements with sequential execution semantics. </div><div class="ttdef"><b>Definition:</b> <a href="_algorithms_8cs_source.html#l00260">Algorithms.cs:260</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover_html_a2c4745453f98b76521ed0e1f97baee72"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#a2c4745453f98b76521ed0e1f97baee72">SystemSharp.SysDOM.Transformations.StatementRemover.AcceptGotoCase</a></div><div class="ttdeci">void AcceptGotoCase(GotoCaseStatement stmt)</div><div class="ttdef"><b>Definition:</b> <a href="_statement_removal_8cs_source.html#l00083">StatementRemoval.cs:83</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover_html_aa6b5699d3f42f65d9091192dc0b12df2"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_transformations_1_1_statement_remover.html#aa6b5699d3f42f65d9091192dc0b12df2">SystemSharp.SysDOM.Transformations.StatementRemover.AcceptThrow</a></div><div class="ttdeci">void AcceptThrow(ThrowStatement stmt)</div><div class="ttdef"><b>Definition:</b> <a href="_statement_removal_8cs_source.html#l00095">StatementRemoval.cs:95</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_bb5e995590685548b7e11478911ee7c3.html">SystemSharp-Google-SVN</a></li><li class="navelem"><a class="el" href="dir_8deefa4467a62b572b52d238d562b104.html">SystemSharp</a></li><li class="navelem"><a class="el" href="dir_0e5a72156f8560bbc472a395da2569d6.html">SystemSharp</a></li><li class="navelem"><a class="el" href="dir_9d3c30b4336bd92c64ccf0aeee487ace.html">SystemSharp</a></li><li class="navelem"><a class="el" href="dir_69d8a7302bcb7dce902a87e2ac33c28d.html">SysDOM</a></li><li class="navelem"><a class="el" href="dir_0f0814edebb8fc040ec633556ce8bbc7.html">Transformations</a></li><li class="navelem"><a class="el" href="_statement_removal_8cs.html">StatementRemoval.cs</a></li>
    <li class="footer">Generated on Thu Dec 26 2013 14:21:43 for SystemSharp by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
